package ch.bfh.abcm.rems.tinkerforge;

import ch.bfh.abcm.rems.sensors.tinkerforge.TFSensorType;

public class TFNodeAverageMessage {

    private int value;
    private String nodeIP;
    private String measurementIP;
    private TFSensorType sensorType;

    public TFNodeAverageMessage(int value, String nodeIP, String measurementIP, TFSensorType sensorType) {
        this.value = value;
        this.nodeIP = nodeIP;
        this.measurementIP = measurementIP;
        this.sensorType = sensorType;
    }

    public int getValue() {
        return value;
    }

    public String getNodeIP() {
        return nodeIP;
    }

    public String getMeasurementIP() {
        return measurementIP;
    }

    public TFSensorType getSensorType() {
        return sensorType;
    }

    @Override
    public String toString() {
        return "TFNodeAverageMessage [value=" + value + ", nodeIP=" + nodeIP + ", measurementIP=" + measurementIP
                + ", sensorType=" + sensorType + "]";
    }

}
